package com.dog.basics.bean.dto.api.mtkj;

import cn.hutool.core.collection.CollUtil;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 商品评价表
 * </p>
 *
 * @author wph
 * @since 2020-11-09
 */
@Data
public class ApiGoodsEvaluateAddDto {





    /**
     * 订单项ID
     */
    @NotNull(message = "订单id不能为空")
    @ApiModelProperty(value = "订单ID", dataType = "Long", required = true)
    private Long orderId;


    /**
     * 评价内容
     */
    @NotNull(message = "评价内容不能为空")
    @ApiModelProperty(value = "评价内容", dataType = "String", required = true)
    private String content;


    /**
     * 评价图片
     */
    @ApiModelProperty(value = "评价图片", dataType = "List",required = false)
    private List<String> image = CollUtil.newArrayList();



    /**
     * 0表示不是 1表示是匿名评价
     */
    @NotNull(message = "0表示不是 1表示是匿名评价不能为空")
    @ApiModelProperty(value = "0表示不是 1表示是匿名评价", dataType = "Integer", required = true)
    private Integer isAnonymous;

    /**
     * 1-5分
     */
    @NotNull(message = "评分不能为空")
    @ApiModelProperty(value = "评分1-5分", dataType = "Integer", required = true)
    private Integer stars;



}
